import { createApp } from "vue";

import { RegionSelects } from "v-region";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import "./main.css";
import router from "./router";
import App from "./App.vue";
import { createPinia } from "pinia";
import moment from 'moment'

const app = createApp(App);

app.config.globalProperties.$moment = moment
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(ElementPlus);
app.use(pinia);

app.use(router);
app.component("v-region-selects", RegionSelects);
app.mount("#app");
